package main

import (
	"article/api"
	"article/appconfig"
	"article/inits/model"
	"github.com/gin-gonic/gin"
)

func main() {
	appconfig.Init()
	model.MysqlInit()
	router := gin.Default()
	api.CreateArt(router)
	api.CreateCom(router)
	api.FindCom(router)
	api.DelCom(router)
	router.Run() // 监听并在 0.0.0.0:8080 上启动服务
}
